<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023-06-06
  Time: 11:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <a href="/add">添加</a>
    <title>Title</title>
</head>
<body>
    <table border="1">
        <tr>
            <th>考勤编号</th>
            <th>学生编号</th>
            <th>学生姓名</th>
            <th>出勤时间</th>
            <th>出勤情况</th>
        </tr>

        <c:forEach items="${list}" var="stu">
            <tr>
                <td>${stu.type}</td>
                <td>${stu.aid}</td>
                <td>${stu.sname}</td>
                <td>${stu.time}</td>
                <td>
                <c:if test="${stu.sid==1}" >已到</c:if>
                <c:if test="${stu.sid==2}" >迟到</c:if>
                <c:if test="${stu.sid==3}" >旷课</c:if>
                </td>
            </tr>
        </c:forEach>
    </table>
</body>
</html>
